package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("t_wenjian_xiuding")
@ApiModel(value = "文件修订申请")
public class WenjianXiuding {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("申请日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate applyDate;

    @ApiModelProperty("申请部门")
    private String applyDepartment;

    @ApiModelProperty("申请人")
    private String applicant;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("文件编号")
    private String fileNumber;

    @ApiModelProperty("版本")
    private String fileVersion;

    @ApiModelProperty("申请类别")
    private String applyType;

    @ApiModelProperty("申请原因")
    private String applyReason;

    @ApiModelProperty("状态")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    @TableLogic
    @ApiModelProperty("是否删除")
    private Boolean isDeleted;

    @TableField(exist = false)
    @ApiModelProperty("修订明细")
    private List<WenjianXiudingDetail> details;
} 